﻿<link rel="stylesheet" type="text/css" href="{$atplPath}skin/admin2013_child.css" />
<link rel="stylesheet" type="text/css" href="{$atplPath}skin/admin2013_child.css" />
<link rel="stylesheet" type="text/css" href="{$atplPath}js/shade/css/lightwindow.css" />
<script charset="utf-8" src="/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript" src="{$atplPath}js/shade/javascript/prototype.js"></script>
<script type="text/javascript" src="{$atplPath}js/shade/javascript/effects.js"></script>
<script type="text/javascript" src="{$atplPath}js/shade/javascript/lightwindow.js"></script> 
<script src="{$atplPath}js/jquery-1.10.2.min.js"></script>
<script src="{$atplPath}js/jquery.cookie.js"></script>
<script type="text/javascript">
$.noConflict();
window['logincookieStr'] = jQuery.cookie('{$adminlogincookieName}');
</script>
<form name="form1" method="post" action="?action=editSave" onsubmit="return checkaddjingjiren(this)" enctype="multipart/form-data">
<input type="hidden" name="gotourl" value="{$gotourl}">
<input type="hidden" name="ID" value="{$id}">
<table align="center" cellpadding="2" width="100%" cellspacing="0" class="toptable grid table_style table_style_2017" border="0">
	<tr>
		<th style="text-align:left; padding-left:12px;" colspan="3">修改经纪人信息</th>
		<th style="text-align:right; padding-right:10px;"><a href="javscript:void(0);" onclick="return window.history.go(-1);" class="global_btn">返回上一级</a></th>
	</tr>
	<tr>
		<td style="border-bottom:0 none; text-align:left; padding-top:0;" colspan="4">
		<div class="fields_input">
			<ul class="clearfix">
				<li class="geduan" style="background-color:#f9f9f9;">基本信息</li>
				
				<li>
					<span class="a">会员名：</span>
					<span class="d"><input class="s_ipt" type="text" name="userid" value="{$chrname}" onblur="if(this.value!=''){getdata('request.aspx?action=checkjingjiren&tt={$userid}&userid='+encMe(this.value),'tishi');}else{tishi.innerHTML='（一个会员只能一个经纪人）';}">　<em class="global_tip" id="tishi">一个会员只能一个经纪人</em></span>
				</li>
				<li>
					<span class="a">经纪人姓名：</span>
					<span class="d"><input name="truename" value="{$truename}" class="s_ipt" type="text" />　<em class="global_tip"></em></span>
				</li>
				<li class="w_auto_select">
					<span class="a">服务区域：</span>
					<span class="d">{$qu_classid}</span>
				</li>
				<li>
					<span class="a">公司/门店：</span>
					<span class="d"><input name="chrcompany" value="{$chrcompany}" class="s_ipt" type="text" />　<em class="global_tip"></em></span>
				</li>
				<li>
					<span class="a">个人头像：</span>
					<span class="d">
<input type=hidden name="url1" value="{$url1}">
<input type="hidden" name="filewidth" value="130">
<input type="hidden" name="fileheight" value="160">
<input type="hidden" name="smallfilewidth" value="130">
<input type="hidden" name="smallfileheight" value="160">
<span id="str3"><img src="{$url1}" border="0" style="width:130px; height:160px; display:block; vertical-align:top;"><button type="button" onclick="hid2();" class="global_btn">重新上传</button></span>

<span id="str4" style="display:none"><input type="file" name="file1" size="60">　<em class="global_tip">限制50K以内，JPG/GIF，最佳尺寸：130x160</em></span>
					</span>
				</li>
				<li>
					<span class="a">公司LOGO：</span>
					<span class="d">
						<input type=hidden name="url2" value="{$url2}">
						<span id="str1"><img src="{$url2}" border="0" style="width:130px; height:90px; display:block; vertical-align:top;"><button type="button" onclick="hid1();" class="global_btn">重新上传</button></span>
						<span id="str2" style="display:none"><input type="file" name="file2" size="60">　<em class="global_tip">限制50K以内，JPG/GIF，最佳尺寸：130x90</em></span>
					</span>
				</li>
				<li>
					<span class="a">通栏背景：</span>
					<span class="d">
						<input type="radio" value="1" {$R1}   name="R">使用默认：<input type="radio" value="1" {$R11}  name="R1">默认1&nbsp;
		<input type="radio" value="2" {$R12} name="R1">默认2&nbsp;
		<input type="radio" value="3" {$R13} name="R1">默认3&nbsp;
		<input type="radio" value="4" {$R14} name="R1">默认4&nbsp;
		<input type="radio" value="5" {$R15} name="R1">默认5<BR>
		<input type="radio" value="2" {$R2}   name="R">自定义：<span id="str5" >{$tonglang$}</span><span id="str6" style="display:none">
		<input type="file" name="file3" class="s_ipt"> <em class="global_tip">仅限认证经纪人</em>
		</span>
	  <input type=hidden name="url3" value="{$url3}">
					</span>
				</li>
				<li>
					<span class="a">通栏显示名字：</span>
					<span class="d"><input type="radio" name="ifshow" value="0" {$ifshow0}>显示 <input type="radio" name="ifshow" value="1" {$ifshow1} >不显示</span>
				</li>
				<li>
					<span class="a">手机：</span>
					<span class="b"><input name="chrtel" value="{$chrtel}" class="s_ipt" type="text" /></span>
					<span class="a">QQ：</span>
					<span class="b"><input name="chrqq" value="{$chrqq}" class="s_ipt" type="text" /></span>
				</li>
				<li class="geduan">独立域名　<span style="font-size:12px; color:#666;">请确保配置了服务器相关设置且服务为开启状态</span></li>
				<li>
					<span class="a">是否启用：</span>
					<span class="d"><input name="yumingkill" type="radio" value="0" {$yumingiskill_c_0} >不启用（暂停） <input name="yumingkill" type="radio" value="1" {$yumingiskill_c_1}  >启用(正常) <input name="yumingkill" type="radio" value="2" {$yumingiskill_c_2} >禁止使用</span>
				</li>
				<li>
					<span class="a">独立域名：</span>
					<span class="d http"><span class="http_in">{$SiteQiyeUrlSchemet}</span><input name="yumingname" id="yumingname" value="{$yumingname}" onblur="checkyuming(this.value,'yumingshow',{$id},1)" class="s_ipt" type="text" />　<em class="global_tip" id="yumingshow"></em></span>
				</li>
				<li>
					<span class="a">备案号：</span>
					<span class="d"><input name="yumingbeian" id="yumingbeian" value="{$yumingbeian}" class="s_ipt" type="text" />　<em class="global_tip"></em></span>
				</li>
				<li class="geduan">简介信息</li>
				<li>
					<span class="a">个人介绍：</span>
					<span class="d">
					<p style="margin-bottom:15px;"><input type="checkbox" name="gereniskill" {$gereniskill1}  value="1" class="text" >启用 <em class="global_tip">仅限认证经纪人</em></p>
					<textarea cols="80" id="gerencontent" name="gerencontent" rows="10">{$gerencontent}</textarea>
	<script>
		KindEditor.ready(function(K) {
			var editor = K.create('textarea[name="gerencontent"]', {
				uploadJson : '/kindeditor/upload_json.ashx?' + window["logincookieStr"],
				afterBlur: function(){this.sync();},
				fileManagerJson : '/kindeditor/file_manager_json.ashx',

				allowFileManager : true,width : '100%',height : '300px'
			});
		});
	</script></span>
				</li>
				<li>
					<span class="a">门店介绍：</span>
					<span class="d">
					<p style="margin-bottom:15px;"><input type="checkbox" name="mendianiskill" value="1" {$mendianiskill1}  class="text" > 启用<em class="global_tip">仅限认证经纪人</em></p>
					<textarea cols="80" id="mendiancontent" name="mendiancontent" rows="10">{$mendiancontent}</textarea>
	<script>
		KindEditor.ready(function(K) {
			var editor = K.create('textarea[name="mendiancontent"]', {
				uploadJson : '/kindeditor/upload_json.ashx?' + window["logincookieStr"],
				afterBlur: function(){this.sync();},
				fileManagerJson : '/kindeditor/file_manager_json.ashx',

				allowFileManager : true,width : '100%',height : '300px'
			});
		});
	</script></span>
				</li>
				<li class="geduan">属性设置</li>
				<li>
					<span class="a">排序：</span>
					<span class="b"><input name="intorder" value="{$intorder}" onKeyUp="if(isNaN(value))execCommand('undo')" class="s_ipt" type="text" />　<em class="global_tip">数字越大越靠前</em></span>
					<span class="a">点击：</span>
					<span class="b"><input name="views" value="{$views}" onKeyUp="value=value.replace(/\D+/g,'')" class="s_ipt" type="text" />　<em class="global_tip">会在该数字基础上累加</em></span>
				</li>
				<li>
					<span class="a">属性：</span>
					<span class="b"><input type="checkbox" name="tuijian" value="1" {$tuijian}>推荐</span>
					<span class="a">认证：</span>
					<span class="b"><input type="radio" name="iskill" value="0" {$iskill0} >申请认证 <input type="radio" name="iskill" value="1"  {$iskill1}>已认证 <input type="radio" name="iskill" value="2" {$iskill2}>非认证</span>
				</li>
				<li>
					<span class="a">&nbsp;</span>
					<span class="b"><input type="submit" value="确定提交" class="global_btn_blue_big"></span>
				</li>
			</ul>
		</div>
		</td>
	</tr>
</table>
</form>
</body>
</html>
<script>
var tonglang="{$url3}";
if(tonglang.length>0){
	$("str5").style.display="none";
	$("str6").style.display="block";
}
function hid1()
{
	$("str1").style.display="none";
	$("str2").style.display="block";
}
function hid2()
{
	$("str3").style.display="none";
	$("str4").style.display="block";
}
function hid3()
{
	$("str5").style.display="none";
	$("str6").style.display="block";
}
</script>